<?php 
require_once('./common/Database.php');
class PostListController
{
	public function DoControll()
	{
		$db = new Database;
		$db->Connect(new DBConfig());
		$BloggView = new BloggView();
		$BloggList = new BloggList();
		$posts = $BloggList->getAllPosts($db);
		$return = $BloggView->ShowListOfPosts($posts);
		return $return;
	}
}
